class Admin::AdministratorController < Admin::BaseController
  active_scaffold :administrator do |config|
  	  config.label = "管理员管理"
  	  config.create.link.inline = false
  	  config.columns = [:username, :password, :created_at, :last_login_time]
      config.create.columns = [:username, :password]
      config.list.columns.exclude :password
      list.sorting = {:username => 'ASC'}
      
      columns[:username].label = "用户名"
      columns[:password].label = "密码"
      columns[:created_at].label = "创建时间"
      columns[:last_login_time].label = "上次登录时间"
  end
end
